package cn.com.cifi.mars.constant;

/**
* @Description:  系统日志操作枚举
* @Author: wy
* @Date:
*/
public enum LogEventEnum {

	SUBMISSION("submission","提交"),
	DELETE("delete","删除"),
    EDIT("edit","编辑"),
    BROWSE("browse","浏览"),
    PRESERVATION("preservation","保存"),
    ADD("add","新增"),
    TIMERTASK("TimerTask","定时任务"),
    REFRESH("refresh","刷新"),
    MQ("mq","MQ消息"),
    ESB("esb","esb接收"),
    ;

    private String key;
    private String value;

    LogEventEnum(String key,String value) {
        this.key = key;
        this.value = value;
    }
    
    
    public static String getValueByKey(String key){
        for(LogEventEnum versionTypeEunm:LogEventEnum.values()){
            if(key.equals(versionTypeEunm.getKey())){
                return versionTypeEunm.getValue();
            }
        }
        return  null;
    }
    
    /**
     * @return the key
     */
    public String getKey() {
        return key;
    }

    /**
     * @return the value
     */
    public String getValue() {
        return value;
    }

}
